<template>
  <div class="flx-bm">
    <vtButton type="type11" @click.native.prevent="clickMinus">-</vtButton>
    <div class="flx-mm px15">{{count}}</div>
    <vtButton type="type11" @click.native.prevent="clickAdd">+</vtButton>
  </div>
</template>

<script>
  import vtButton from 'assets/myTools/vueTools/com/common/button/button'
  export default {
    components: {
      vtButton
    },
    props: {
      count: {
        type: Number,
        default() {
          return 0
        }
      }
    },
    methods: {
      clickMinus() {
        this.$emit('click-minus')
      },
      clickAdd() {
        this.$emit('click-add')
      }
    }
  }
</script>

<style scoped>

</style>
